package com.xr.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xr.pojo.Goods;

import java.util.List;

public interface GoodsService {

    //添加
    Boolean save(Goods goods);

    //修改
    Boolean update(Goods goods);

    //删除
    Boolean delete(Integer id);

    //根据id查询
    Goods getById(Integer id);

    //查询所有
    List<Goods> getAll();

    //分页查询
    IPage<Goods> getPage(int currentPage, int pageSize,Goods goods);

}
